package com.hsgene.message.persistence;

import com.hsgene.message.domain.MessageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 持久层数据接口
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 15:34 2018/6/25
 * @Modified By:
 */
@Repository
public interface MessagePersistence {
    /*@Insert("INSERT INTO geneshop_sms_message(msg_content,send_phone,receive_phone,send_result,sms_plug,send_time,comment)"
            +"VALUES(#{messageInfo.msg_content},#{messageInfo.send_phone},#{messageInfo.receive_phone}," +
            "#{messageInfo.send_result},#{messageInfo.sms_plug},#{messageInfo.send_time},#{messageInfo.comment})")*/
    int insert(@Param("messageInfo") MessageInfo messageInfo);

    Map<String, Object> getVerifyCodeByPhone(@Param("phone") String phone);

}
